//
//  LiuXSlider.h
//  Exam12-1
//
//  Created by 孙晓晔 on 2017/4/23.
//  Copyright © 2017年 孙晓晔. All rights reserved.
//

typedef void(^valueChangeBlock)(int index);

#import <UIKit/UIKit.h>

@interface MySlider : UIControl

/**
 *  回调
 */
@property (nonatomic,copy)valueChangeBlock block;


// 初始化方法
-(instancetype)initWithFrame:(CGRect)frame
                      titles:(NSArray *)titleArray
                defaultIndex:(CGFloat)defaultIndex
                 sliderImage:(UIImage *)sliderImage;




@end
